<template>
	<view class="new-person-box">
		<view class="item-box1">
			<text class="title1">卡券礼包购</text>
			<text class="title2">为您推荐</text>
		</view>
		<!-- <view class="item-box1">
			<text class="title2">尊敬的用户，保持良好的信用可提额</text>
		</view> -->
		<view class="item-box2"  @click="$onTo('/pagesClass-rich/goodsList-rich/goodsList-rich?content&name=商品列表')">
			<view>
				<!-- <view class="title-middle">补贴红包</view>
				<view class="qiang">抢</view> -->
			</view>
			<view>
				<view class="goods-box" >
					<text style="margin-top: 5rpx;">精美卡券</text>
					<text style="margin-top: 8rpx;font-size: 12px; color: #999;">电子卡 | 传递真情</text>
					<text style="margin-top: 8rpx;">
						<!-- <text style="font-size: 20rpx;background:#d5e6ff; text-align: center;margin-right: 10rpx;">更优惠</text> -->
						<text style="font-size: 20rpx;background:#d5e6ff; text-align: center;" >更多优惠提额关注官方通知</text>
					</text>
					
				</view>
				<view class="goods-box" >
					<text style="margin-top: 50rpx; border-radius: 40px; background: #bf9465; padding: 10rpx 40rpx;margin-left: 20rpx;color: #ffffff;"
					@click="$onTo( `/pagesClass-rich/goodsList-rich/goodsList-rich`)">去查看</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			// newPersonList: {
			// 	type: Array,
			// 	default: [],
			// },
		},
		data() {
			return {
				iphoneList: [],
				newGoodsList:[],
				
				
				
				
				//下面是没用的垃圾混淆代码
				renzhengTimeSta1111111: true, //初次请求认证时间默认是带有的，
				zhuceTimeSta11111: false, //初次请求注册时间默认是没有的
				renzhengTimeList11111: [],
				zhuceTimeStaList1111: null,
				detailOrderIdStr11111: '',
				threeTabCurrent1111: 0,
				applyGOodsList11111: [], //供货商列表
				allCardEnterSta1111: false, //默认是false，点击批量卡券入库的时候变为true
				codeAddNumsList11111: [],
				numsList11111: [],
				dataSourceBqcp1111: [],
				selectedRowKeys1111: [],
				selectedRowKeysB11111: [],
				rkVisible11111: false,
				rkjlVisible1111: false,
				lhjlVisible1111: false,
				currentStyleData22222: {},
				dataSourceStyle2222: [],
				showStyleData2222: false,
				indexTemplate2222: [],
				SVGCircleElement3ee: '',
				vshoweqwsc1111: false,
				showStyleDataInfo2222: false,
				opeCategoryList2222: [],
				leimuVisible2222: false,
				selectedRowKeys02222: [],
				selectionRows02222: [],
				selectedRowKeys133333: [],
				selectionRows13333: [],
				selectedRowKeys2333: [],
				selectionRows23333: [],
				selectedRowKeys33333: [],
				selectionRows33333: [],
				selectedRowKeys4333: [],
				selectionRows43333: [],
				curwfqwrentStyleDaterwaInfo444: {},
				currwerentStywerleDatweraInfo1444: {},
				currewerntStyleDataInfo24444: {},
				currentweStyleDytuataIwenfo34444: {},
				currenwetStdfgyleDataInfo44444: {},
				checkZfbPhone_h5444: '',
				plNafgdvfdtjyme4444: '', //四大品类的名字
				uniPdfgrtylatform444: '', //运行环境mp-alipay mp-weixin
				refgjtytrsemark555: '', //备注
				timefgjSelStr5555: '', //选择的上门时间（2023-08-31 00:00:00）
				amOdcuiofasrpm5555: '', //选择的上门时间是上午还是下午
				pageShnjlkgohowTime5555: '', //页面上用户看到的显示的时间
				paraghsdfmsw454: {},
				valhgujtueNum56756: 0,
				addrdraess56756: {}, //上门收货地址
				adawerterydressId575: 0,
				sceoyuitne57567: '',
				tntuiopId56757: '',
				weictyuratCustomer5756: '',
				yuidurtyuoy567567: false,
			}
		},
		components: {},

		onLoad() {},

		onUnload() {},

		created() {
			
		},
		mounted() {
		},

		methods: {
		},
	}
</script>

<style lang="scss" scoped>
	.new-person-box {
		width: 95%;
		margin: 10rpx auto 10rpx auto;
		height: 330rpx;
		border-radius: 20rpx;
		background-image: linear-gradient(to right, #ffedd9, #ffedd9);
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;

		>view:nth-child(1) {
			width: 90%;
			// background-color: teal;
			color: white;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			margin: 20rpx 0;
			.title1 {
				font-weight: 700;
				font-size: 20px;
				color: #333;
			}

			.title2 {
				margin-left: 8rpx;
				font-size: 24rpx;
				color: #333;
				background: #ffd500;
				padding: 0 10rpx;
			}

		}

		>view:nth-child(2) {
			width: 95%;
			height: 200rpx;
			border-radius: 20rpx;
			background-color: white;
			margin-bottom: 20rpx;
			// display: flex;
			// justify-content: space-evenly;
			// align-items: center;

			>view:nth-child(1) {
				float: left;
				margin: 22rpx 0 0 10rpx ;
				width: 207rpx;
				height: 163rpx;
				background: url('../../static/jdek111_rich.jpg');
				background-repeat: no-repeat;
				background-position: center center;
				background-size: 100% 100%;
				color: #EB5373;
				font-size: 20rpx;
				font-weight: 600;
				position: relative;

				.price {
					position: absolute;
					left: 72rpx;
					top: 26rpx;
				}

				.title-middle {
					position: absolute;
					left: 75rpx;
					top: 50rpx;
				}

				.qiang {
					width: 30rpx;
					height: 30rpx;
					line-height: 30rpx;
					text-align: center;
					border-radius: 50%;
					background-color: #F8DDBC;
					position: absolute;
					left: 100rpx;
					top: 100rpx;
				}
			}

			>view:nth-child(2) {
				// display: flex;

				.goods-box {
					float: left;
					margin: 40rpx 0 0 10rpx;
					color: #333;
					font-weight: 600;
					font-size: 28rpx;
					display: flex;
					flex-direction: column;
					// align-items: center;

					image {
						width: 130rpx;
						height: 130rpx;
					}

					.title {
						width: 80rpx;
						font-size: 18rpx;
						color: white;
						text-align: center;
						font-weight: 600;
						padding: 5rpx;
						margin-top: -30rpx;
						border-radius: 20rpx;
						background-color: #EA5758;
					}

				}
			}
		}
	}
</style>
